package com.ryan.quartz.temp.factory;

/**
 * 加盟店
 *
 * @author Rayn on 2017/10/29.
 * @email liuwei412552703@163.com.
 */
public class NYStylePizzaStore2 extends PizzaStore2 {


    /**
     * @param type
     */
    @Override
    public Pizza2 create(String type) {
        Pizza2 pizza = null;

        if (type.equalsIgnoreCase("veggle")) {
            pizza = new VegglePizza2();
        } else if (type.equalsIgnoreCase("clam")) {
            pizza = new ClamPizza2();
        }
        return pizza;
    }
}
